﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.User.UserAddressBook
{
    /// <summary>
    /// 用户地址薄添加信息
    /// </summary>
    public class UserAddressBookRequestDto
    {
        /// <summary>
        /// 联系人姓名
        /// </summary>            
        [Display(Name = "联系人姓名")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ContactName { get; set; }

        /// <summary>
        /// 联系人电话
        /// </summary>            
        [Display(Name = "联系人电话")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ContactPhone { get; set; }

        /// <summary>
        /// 省份编码
        /// </summary>            
        [Display(Name = "省份编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 城市编码
        /// </summary>            
        [Display(Name = "城市编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CityCode { get; set; }

        /// <summary>
        /// 区县编码
        /// </summary>            
        [Display(Name = "区县编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CountyCode { get; set; }

        /// <summary>
        /// 地址信息
        /// </summary>            
        [Display(Name = "地址信息")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Address { get; set; }

        /// <summary>
        /// 经度
        /// </summary>            
        [Display(Name = "经度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>            
        [Display(Name = "纬度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double Latitude { get; set; }

        /// <summary>
        /// 已默认
        /// </summary>            
        [Display(Name = "已默认")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool IsDefault { get; set; }
    }
}
